{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import warnings\n",
    "warnings.filterwarnings('ignore')\n",
    "import os"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "__file__ = 'InceptionResNetV2-Xception-8.30.1-2'\n",
    "os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"2\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Using TensorFlow backend.\n"
     ]
    }
   ],
   "source": [
    "from keras.preprocessing.image import ImageDataGenerator\n",
    "from glob import glob\n",
    "import tensorflow as tf\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "import keras\n",
    "from keras.applications.inception_v3 import InceptionV3\n",
    "from keras.applications.xception import Xception\n",
    "from keras.applications.resnet50 import ResNet50\n",
    "from keras_applications.resnext import ResNeXt50\n",
    "from keras.applications.nasnet import NASNetLarge\n",
    "from keras.applications.inception_resnet_v2 import InceptionResNetV2\n",
    "from keras.models import *\n",
    "from keras.layers import *\n",
    "from keras.optimizers import *\n",
    "from keras.callbacks import *\n",
    "import PIL\n",
    "import time\n",
    "\n",
    "def preprocess_img(x):\n",
    "    x = x / 127.5\n",
    "    x -= 1.\n",
    "    return x"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "path_data = '../garbage_classify/train_data'\n",
    "batch_size = 16\n",
    "img_size = 299\n",
    "img_width = img_size\n",
    "img_height = img_size\n",
    "random_seed = 201908\n",
    "path_data_train = '../tmp/data_train/'\n",
    "path_data_valid = '../tmp/data_valid/'\n",
    "labels_file = '../tmp/labels_raw.csv'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7faa54a89c18>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAEGCAYAAACJnEVTAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAATcElEQVR4nO3df5Bd5X3f8fcHIaRSCNYvGIIgghZTgcEUVgTHPyJnXJBwO0CGcUlJrYl/EBwntTNTxqTjCbE9dIynSRPZAVutKWRqQzC2sVpTI0EBN40BixRj8VMqhtESQDKyMcUGS/DtH/csvVlWP3ZX0r3q837N7Nxzn/Occ7/7jPS5Z59z7rmpKiRJbThg0AVIkvYdQ1+SGmLoS1JDDH1JaoihL0kNOXDQBezM/Pnza9GiRYMuQ5L2K/fdd98Pq2rBROuGOvQXLVrEunXrBl2GJO1Xkjy5o3VO70hSQwx9SWqIoS9JDRnqOX1JGm/btm2Mjo7y0ksvDbqUgZs9ezYLFy5k5syZu72NoS9pvzI6Osqhhx7KokWLSDLocgamqnjuuecYHR3l2GOP3e3tnN6RtF956aWXmDdvXtOBD5CEefPmTfovHkNf0n6n9cAfM5VxMPQlqSGGviRNwcqVK1m8eDEXXXTRoEuZFE/kStIUXHXVVdx2220sXLhw0KVMikf6kjRJl1xyCY8//jjLly/nsMMO433vex9Lly7luOOOY+XKla/1O++88zj99NM56aSTWLVq1WvthxxyCJdeeiknnXQS73rXu7j33ntf23716tUAvPLKK1x66aUsWbKEU045hS984Qt7pPYM89cljoyMlPfekdTv4YcfZvHixQB84r88yEN/+5M9uv8Tf/EXuPyfnbTLfmP3Bvvc5z7HmjVruOOOO3jhhRc44YQTeOaZZ5g5cyZbt25l7ty5/OxnP2PJkiXcddddr115dMstt7B8+XLOP/98XnzxRb75zW/y0EMPsWLFCu6//35WrVrF5s2b+fjHP87LL7/MW9/6Vr7yla+87vLM/vEYk+S+qhqZqG6ndyRpmt797ncza9YsZs2axeGHH86zzz7LwoULWblyJV//+tcB2LRpExs2bGDevHkcdNBBLFu2DICTTz6ZWbNmMXPmTE4++WSeeOIJANasWcMDDzzATTfdBMDzzz/Phg0bJnVN/kQMfUn7rd05It8XZs2a9dryjBkz2L59O3feeSe33XYb3/nOdzj44INZunTpa9fUz5w587XLLQ844IDXtj/ggAPYvn070Pvw1Wc/+1nOPvvsPVqrc/qStBc8//zzzJkzh4MPPphHHnmEu+++e1Lbn3322Vx99dVs27YNgMcee4wXX3xx2nV5pC9Je8GyZcv4/Oc/z+LFiznhhBM488wzJ7X9Bz7wAZ544glOO+00qooFCxZw8803T7suT+RK2q9MdOKyZZM9kev0jiQ1xNCXpIYY+pL2O8M8Lb0vTWUcDH1J+5XZs2fz3HPPNR/8Y/fTnz179qS28+odSfuVhQsXMjo6ypYtWwZdysCNfXPWZBj6kvYrM2fOnPanUlvm9I4kNcTQl6SG7DL0k1yTZHOS9X1tc5OsTbKhe5wzbpslSbYnuaCvbUXXf0OSFXv215Ak7Y7dOdK/Flg2ru0y4PaqOh64vXsOQJIZwJXAmr62ucDlwC8DZwCXj3+jkCTtfbsM/ar6NrB1XPO5wHXd8nXAeX3rfg/4KrC5r+1sYG1Vba2qHwFref0biSRpL5vqnP4RVfV0t/wMcARAkqOA84Grx/U/CtjU93y0a3udJBcnWZdknZdkSdKeNe0TudX7hMTYpyT+FPhYVb06jf2tqqqRqhpZsGDBdMuTJPWZ6nX6zyY5sqqeTnIk/28qZwS4oftygPnAOUm2A08BS/u2XwjcOcXXliRN0VSP9FcDY1fgrAC+AVBVx1bVoqpaBNwE/E5V3QzcCpyVZE53Avesrk2StA/t8kg/yfX0jtLnJxmldxXOp4Ebk7wfeBJ4z872UVVbk3wK+G7X9MmqGn9yWJK0l/klKpL0/xm/REWSBBj6ktQUQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kN2WXoJ7kmyeYk6/va5iZZm2RD9zina78oyQNJvp/kr5O8uW+bZUkeTbIxyWV759eRJO3M7hzpXwssG9d2GXB7VR0P3N49B/gB8KtVdTLwKWAVQJIZwJ8Dy4ETgd9IcuK0q5ckTcouQ7+qvg1sHdd8LnBdt3wdcF7X96+r6kdd+93Awm75DGBjVT1eVT8Hbuj2IUnah6Y6p39EVT3dLT8DHDFBn/cD/61bPgrY1LdutGuTJO1DB053B1VVSaq/Lck76YX+2ya7vyQXAxcDHHPMMdMtT5LUZ6pH+s8mORKge9w8tiLJKcB/BM6tque65qeAo/u2X9i1vU5VraqqkaoaWbBgwRTLkyRNZKqhvxpY0S2vAL4BkOQY4GvAv6yqx/r6fxc4PsmxSQ4CLuz2IUnah3Y5vZPkemApMD/JKHA58GngxiTvB54E3tN1/0NgHnBVEoDt3VH79iS/C9wKzACuqaoH9/QvI0nauVTVrnsNyMjISK1bt27QZUjSfiXJfVU1MtE6P5ErSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDdhn6Sa5JsjnJ+r62uUnWJtnQPc7p2pNkZZKNSR5IclrfNiu6/huSrNg7v44kaWd250j/WmDZuLbLgNur6njg9u45wHLg+O7nYuBq6L1JAJcDvwycAVw+9kYhSdp3DtxVh6r6dpJF45rPBZZ2y9cBdwIf69r/oqoKuDvJG5Ic2fVdW1VbAZKspfdGcv3OXvvxLS/yz7/wnd38VSRJuzLVOf0jqurpbvkZ4Ihu+ShgU1+/0a5tR+2vk+TiJOuSrNu2bdsUy5MkTWSXR/q7UlWVpPZEMd3+VgGrAEZGRuovf/ste2rXktSEGy/Z8bqpHuk/203b0D1u7tqfAo7u67ewa9tRuyRpH5pq6K8Gxq7AWQF8o6/9vd1VPGcCz3fTQLcCZyWZ053APatrkyTtQ7uc3klyPb0TsfOTjNK7CufTwI1J3g88Cbyn634LcA6wEfgp8FsAVbU1yaeA73b9Pjl2UleStO+kd6HNcBoZGal169YNugxJ2q8kua+qRiZa5ydyJakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkOmFfpJPpJkfZIHk3y0azs1yd1J7k+yLskZXXuSrEyyMckDSU7bE7+AJGn3TTn0k7wJ+CBwBvBm4J8m+YfAZ4BPVNWpwB92zwGWA8d3PxcDV0+jbknSFEznSH8xcE9V/bSqtgN3Ab8OFPALXZ/DgL/tls8F/qJ67gbekOTIaby+JGmSDpzGtuuBK5LMA34GnAOsAz4K3Jrk39F7U/mVrv9RwKa+7Ue7tqenUYMkaRKmfKRfVQ8DVwJrgG8B9wOvAB8Cfr+qjgZ+H/jiZPab5OLuXMC6LVu2TLU8SdIEpnUit6q+WFWnV9U7gB8BjwErgK91Xb5Cb84f4Cng6L7NF3Zt4/e5qqpGqmpkwYIF0ylPkjTOdK/eObx7PIbefP6X6c3h/2rX5deADd3yauC93VU8ZwLPV5VTO5K0D01nTh/gq92c/jbgw1X14yQfBP4syYHAS/Su1AG4hd68/0bgp8BvTfO1JUmTNK3Qr6q3T9D2V8DpE7QX8OHpvJ4kaXr8RK4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ2ZVugn+UiS9UkeTPLRvvbfS/JI1/6ZvvY/SLIxyaNJzp7Oa0uSJu/AqW6Y5E3AB4EzgJ8D30ryX4GjgXOBN1fVy0kO7/qfCFwInAT8InBbkjdW1SvT/B0kSbtpOkf6i4F7quqnVbUduAv4deBDwKer6mWAqtrc9T8XuKGqXq6qHwAb6b1hSJL2kemE/nrg7UnmJTkYOIfeUf4bu/Z7ktyVZEnX/yhgU9/2o13b35Hk4iTrkqzbsmXLNMqTJI035emdqno4yZXAGuBF4H7glW6fc4EzgSXAjUmOm8R+VwGrAEZGRmqq9UmSXm9aJ3Kr6otVdXpVvQP4EfAYvSP4r1XPvcCrwHzgKXp/CYxZ2LVJkvaR6V69M3aS9hh68/lfBm4G3tm1vxE4CPghsBq4MMmsJMcCxwP3Tuf1JUmTM+Xpnc5Xk8wDtgEfrqofJ7kGuCbJenpX9ayoqgIeTHIj8BCwvevvlTuStA9NK/Sr6u0TtP0c+M0d9L8CuGI6rylJmjo/kStJDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWpIqmrQNexQkheARwddx26aD/xw0EXsJmvdO6x177DWyfulqlow0YoD93Ulk/RoVY0MuojdkWSdte551rp3WOvesT/U6vSOJDXE0Jekhgx76K8adAGTYK17h7XuHda6dwx9rUN9IleStGcN+5G+JGkPMvQlqSFDG/pJliV5NMnGJJcNup6dSfJEku8nuT/JukHX0y/JNUk2J1nf1zY3ydokG7rHOYOsccwOav2jJE91Y3t/knMGWeOYJEcnuSPJQ0keTPKRrn2oxnYndQ7duCaZneTeJN/rav1E135sknu6LPjLJAcNca3XJvlB37ieOuhaX6eqhu4HmAH8b+A44CDge8CJg65rJ/U+AcwfdB07qO0dwGnA+r62zwCXdcuXAVcOus6d1PpHwL8edG0T1HokcFq3fCjwGHDisI3tTuocunEFAhzSLc8E7gHOBG4ELuzaPw98aIhrvRa4YND17exnWI/0zwA2VtXjVfVz4Abg3AHXtF+qqm8DW8c1nwtc1y1fB5y3T4vagR3UOpSq6umq+ptu+QXgYeAohmxsd1Ln0Kme/9M9ndn9FPBrwE1d+8DHFHZa69Ab1tA/CtjU93yUIf2H2ilgTZL7klw86GJ2wxFV9XS3/AxwxCCL2Q2/m+SBbvpnKKai+iVZBPxjekd7Qzu24+qEIRzXJDOS3A9sBtbS+4v/x1W1vesyNFkwvtaqGhvXK7px/fdJZg2wxAkNa+jvb95WVacBy4EPJ3nHoAvaXdX7+3SYj1CuBv4BcCrwNPDHgy3n70pyCPBV4KNV9ZP+dcM0thPUOZTjWlWvVNWpwEJ6f/H/owGXtEPja03yJuAP6NW8BJgLfGyAJU5oWEP/KeDovucLu7ahVFVPdY+bga/T+8c6zJ5NciRA97h5wPXsUFU92/3nehX4DwzR2CaZSS9Iv1RVX+uah25sJ6pzmMcVoKp+DNwBvAV4Q5Kx+4QNXRb01bqsm06rqnoZ+E8M2bjC8Ib+d4Hju7P2BwEXAqsHXNOEkvz9JIeOLQNnAet3vtXArQZWdMsrgG8MsJadGgvQzvkMydgmCfBF4OGq+pO+VUM1tjuqcxjHNcmCJG/olv8e8E/onYO4A7ig6zbwMYUd1vpI3xt+6J17GPi4jje0n8jtLiH7U3pX8lxTVVcMuKQJJTmO3tE99O5a+uVhqjXJ9cBSerd8fRa4HLiZ3hURxwBPAu+pqoGfQN1BrUvpTUEUvaukfrtvznxgkrwN+B/A94FXu+Z/Q2++fGjGdid1/gZDNq5JTqF3onYGvQPSG6vqk93/sRvoTZf8L+A3uyPpgdlJrf8dWEDv6p77gUv6TvgOhaENfUnSnjes0zuSpL3A0Jekhhj6ktQQQ1+SGmLoS1JDDH2pT5KdXl6XZFH/XUB3c5/XJrlg1z2lvc/Ql6SGGPrSBJIckuT2JH/TfVdC/11eD0zypSQPJ7kpycHdNqcnuau78d6t4z71Kg0FQ1+a2EvA+d2N9N4J/HH30XqAE4Crqmox8BPgd7r723yW3r3UTweuAYbmk9nSmAN33UVqUoB/290x9VV6t/Mdu03ypqr6n93yfwb+FfAt4E3A2u69YQa9u1dKQ8XQlyZ2Eb17qJxeVduSPAHM7taNv3dJ0XuTeLCq3rLvSpQmz+kdaWKHAZu7wH8n8Et9645JMhbu/wL4K+BRYMFYe5KZSU7apxVLu8HQlyb2JWAkyfeB9wKP9K17lN6X5TwMzAGu7r7W8wLgyiTfo3eHxV/ZxzVLu+RdNiWpIR7pS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUkP8LKWxi8D45m+sAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "labels_train = pd.read_csv('../tmp/labels_train.csv')\n",
    "labels_valid = pd.read_csv('../tmp/labels_valid.csv')\n",
    "n_classess = labels_train.label.unique().shape[0]\n",
    "labels_train.groupby(by='label').count().plot()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "labels_train.label = labels_train.label.apply(lambda x: f'{x:02d}')\n",
    "labels_valid.label = labels_valid.label.apply(lambda x: f'{x:02d}')\n",
    "# labels_train['label_bin'].values = keras.utils.np_utils.to_categorical(\n",
    "#     labels_train.label, n_classess)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Found 40000 validated image filenames belonging to 40 classes.\n",
      "Found 2978 validated image filenames belonging to 40 classes.\n"
     ]
    }
   ],
   "source": [
    "ig = ImageDataGenerator(preprocessing_function=preprocess_img)\n",
    "\n",
    "params_g = dict(\n",
    "    batch_size=batch_size,\n",
    "    # directory=path_data,\n",
    "    # class_mode='other',\n",
    "    x_col='fname',\n",
    "    y_col='label',\n",
    "    target_size=(img_width, img_height),\n",
    "    interpolation='lanczos',\n",
    "    seed=random_seed)\n",
    "\n",
    "train_g = ig.flow_from_dataframe(\n",
    "    labels_train, path_data_train, **params_g)\n",
    "valid_g = ig.flow_from_dataframe(\n",
    "    labels_valid, path_data_valid, **params_g)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "input_tensor = Input((img_width, img_height, 3))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Colocations handled automatically by placer.\n"
     ]
    }
   ],
   "source": [
    "base_model_InceptionResNetV2 = InceptionResNetV2(weights='imagenet', include_top=False, input_tensor=input_tensor)\n",
    "base_model_Xception = Xception(weights='imagenet', include_top=False, input_tensor=input_tensor)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "for layer in base_model_InceptionResNetV2.layers:\n",
    "    layer.name = 'InceptionResNetV2_'+layer.name\n",
    "for layer in base_model_Xception.layers:\n",
    "    layer.name = 'Xception_'+layer.name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "a = base_model_InceptionResNetV2.output\n",
    "b = base_model_Xception.output\n",
    "\n",
    "a = GlobalAveragePooling2D()(a)\n",
    "b = GlobalAveragePooling2D()(b)\n",
    "\n",
    "x = Concatenate(axis=-1)([a,b])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Please use `rate` instead of `keep_prob`. Rate should be set to `rate = 1 - keep_prob`.\n",
      "__________________________________________________________________________________________________\n",
      "Layer (type)                    Output Shape         Param #     Connected to                     \n",
      "==================================================================================================\n",
      "Xception_InceptionResNetV2_inpu (None, 299, 299, 3)  0                                            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_1 (Con (None, 149, 149, 32) 864         Xception_InceptionResNetV2_input_\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 149, 149, 32) 96          InceptionResNetV2_conv2d_1[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_1  (None, 149, 149, 32) 0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_2 (Con (None, 147, 147, 32) 9216        InceptionResNetV2_activation_1[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 147, 147, 32) 96          InceptionResNetV2_conv2d_2[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_2  (None, 147, 147, 32) 0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_3 (Con (None, 147, 147, 64) 18432       InceptionResNetV2_activation_2[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 147, 147, 64) 192         InceptionResNetV2_conv2d_3[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_3  (None, 147, 147, 64) 0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 73, 73, 64)   0           InceptionResNetV2_activation_3[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_4 (Con (None, 73, 73, 80)   5120        InceptionResNetV2_max_pooling2d_1\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 73, 73, 80)   240         InceptionResNetV2_conv2d_4[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_4  (None, 73, 73, 80)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_5 (Con (None, 71, 71, 192)  138240      InceptionResNetV2_activation_4[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 71, 71, 192)  576         InceptionResNetV2_conv2d_5[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_5  (None, 71, 71, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 35, 35, 192)  0           InceptionResNetV2_activation_5[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_9 (Con (None, 35, 35, 64)   12288       InceptionResNetV2_max_pooling2d_2\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_9[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_9  (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_7 (Con (None, 35, 35, 48)   9216        InceptionResNetV2_max_pooling2d_2\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_10 (Co (None, 35, 35, 96)   55296       InceptionResNetV2_activation_9[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_7[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 96)   288         InceptionResNetV2_conv2d_10[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_7  (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 35, 35, 96)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_average_pooli (None, 35, 35, 192)  0           InceptionResNetV2_max_pooling2d_2\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_6 (Con (None, 35, 35, 96)   18432       InceptionResNetV2_max_pooling2d_2\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_8 (Con (None, 35, 35, 64)   76800       InceptionResNetV2_activation_7[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_11 (Co (None, 35, 35, 96)   82944       InceptionResNetV2_activation_10[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_12 (Co (None, 35, 35, 64)   12288       InceptionResNetV2_average_pooling\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 96)   288         InceptionResNetV2_conv2d_6[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_8[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 96)   288         InceptionResNetV2_conv2d_11[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_12[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_6  (None, 35, 35, 96)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_8  (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 35, 35, 96)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_mixed_5b (Con (None, 35, 35, 320)  0           InceptionResNetV2_activation_6[0]\n",
      "                                                                 InceptionResNetV2_activation_8[0]\n",
      "                                                                 InceptionResNetV2_activation_11[0\n",
      "                                                                 InceptionResNetV2_activation_12[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_16 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_mixed_5b[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_16[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_14 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_mixed_5b[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_17 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_16[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_14[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_17[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_13 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_mixed_5b[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_15 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_14[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_18 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_17[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_13[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_15[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_18[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_13[0\n",
      "                                                                 InceptionResNetV2_activation_15[0\n",
      "                                                                 InceptionResNetV2_activation_18[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_1_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1 (La (None, 35, 35, 320)  0           InceptionResNetV2_mixed_5b[0][0] \n",
      "                                                                 InceptionResNetV2_block35_1_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_1[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_22 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_22[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_20 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_23 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_22[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_20[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_23[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_19 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_21 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_20[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_24 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_23[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_19[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_21[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_24[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_19[0\n",
      "                                                                 InceptionResNetV2_activation_21[0\n",
      "                                                                 InceptionResNetV2_activation_24[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_2_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_1_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_2_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_2[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_28 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_28[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_26 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_29 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_28[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_26[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_29[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_25 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_27 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_26[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_30 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_29[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_25[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_27[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_30[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_25[0\n",
      "                                                                 InceptionResNetV2_activation_27[0\n",
      "                                                                 InceptionResNetV2_activation_30[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_3_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_2_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_3_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_3[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_34 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_34[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_32 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_35 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_34[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_32[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_35[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_31 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_33 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_32[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_36 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_35[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_31[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_33[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_36[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_31[0\n",
      "                                                                 InceptionResNetV2_activation_33[0\n",
      "                                                                 InceptionResNetV2_activation_36[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_4_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_3_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_4_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_4[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_40 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_40[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_38 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_41 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_40[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_38[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_41[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_41 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_37 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_39 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_38[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_42 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_41[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_37[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_39[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_42[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_42 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_37[0\n",
      "                                                                 InceptionResNetV2_activation_39[0\n",
      "                                                                 InceptionResNetV2_activation_42[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_5_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_4_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_5_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_5[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_46 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_46[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_46 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_44 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_47 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_46[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_44[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_47[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_44 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_47 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_43 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_45 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_44[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_48 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_47[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_43[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_45[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_48[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_43 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_45 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_48 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_43[0\n",
      "                                                                 InceptionResNetV2_activation_45[0\n",
      "                                                                 InceptionResNetV2_activation_48[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_6_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_5_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_6_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_6[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_52 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_52[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_52 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_50 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_53 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_52[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_50[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_53[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_50 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_53 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_49 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_51 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_50[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_54 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_53[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_49[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_51[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_54[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_49 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_51 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_54 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_49[0\n",
      "                                                                 InceptionResNetV2_activation_51[0\n",
      "                                                                 InceptionResNetV2_activation_54[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_7_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_6_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_7_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_7[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_58 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_58[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_58 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_56 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_59 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_58[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_56[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_59[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_56 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_59 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_55 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_57 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_56[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_60 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_59[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_55[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_57[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_60[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_55 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_57 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_60 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_55[0\n",
      "                                                                 InceptionResNetV2_activation_57[0\n",
      "                                                                 InceptionResNetV2_activation_60[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_8_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_7_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_8_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_8[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_64 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_64[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_64 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_62 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_65 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_64[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_62[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_65[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_62 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_65 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_61 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_63 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_62[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_66 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_65[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_61[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_63[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_66[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_61 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_63 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_66 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_61[0\n",
      "                                                                 InceptionResNetV2_activation_63[0\n",
      "                                                                 InceptionResNetV2_activation_66[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_9_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_8_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_9_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_9[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_70 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_70[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_70 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_68 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_71 (Co (None, 35, 35, 48)   13824       InceptionResNetV2_activation_70[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_68[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_71[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_68 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_71 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_67 (Co (None, 35, 35, 32)   10240       InceptionResNetV2_block35_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_69 (Co (None, 35, 35, 32)   9216        InceptionResNetV2_activation_68[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_72 (Co (None, 35, 35, 64)   27648       InceptionResNetV2_activation_71[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_67[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_69[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_72[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_67 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_69 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_72 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10_mi (None, 35, 35, 128)  0           InceptionResNetV2_activation_67[0\n",
      "                                                                 InceptionResNetV2_activation_69[0\n",
      "                                                                 InceptionResNetV2_activation_72[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10_co (None, 35, 35, 320)  41280       InceptionResNetV2_block35_10_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10 (L (None, 35, 35, 320)  0           InceptionResNetV2_block35_9_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_10_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10_ac (None, 35, 35, 320)  0           InceptionResNetV2_block35_10[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_74 (Co (None, 35, 35, 256)  81920       InceptionResNetV2_block35_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 256)  768         InceptionResNetV2_conv2d_74[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_74 (None, 35, 35, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_75 (Co (None, 35, 35, 256)  589824      InceptionResNetV2_activation_74[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 256)  768         InceptionResNetV2_conv2d_75[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_75 (None, 35, 35, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_73 (Co (None, 17, 17, 384)  1105920     InceptionResNetV2_block35_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_76 (Co (None, 17, 17, 384)  884736      InceptionResNetV2_activation_75[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 384)  1152        InceptionResNetV2_conv2d_73[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 384)  1152        InceptionResNetV2_conv2d_76[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_73 (None, 17, 17, 384)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_76 (None, 17, 17, 384)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 17, 17, 320)  0           InceptionResNetV2_block35_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_mixed_6a (Con (None, 17, 17, 1088) 0           InceptionResNetV2_activation_73[0\n",
      "                                                                 InceptionResNetV2_activation_76[0\n",
      "                                                                 InceptionResNetV2_max_pooling2d_3\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_78 (Co (None, 17, 17, 128)  139264      InceptionResNetV2_mixed_6a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_78[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_78 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_79 (Co (None, 17, 17, 160)  143360      InceptionResNetV2_activation_78[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_79[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_79 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_77 (Co (None, 17, 17, 192)  208896      InceptionResNetV2_mixed_6a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_80 (Co (None, 17, 17, 192)  215040      InceptionResNetV2_activation_79[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_77[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_80[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_77 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_80 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_77[0\n",
      "                                                                 InceptionResNetV2_activation_80[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_1_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1 (La (None, 17, 17, 1088) 0           InceptionResNetV2_mixed_6a[0][0] \n",
      "                                                                 InceptionResNetV2_block17_1_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_1[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_82 (Co (None, 17, 17, 128)  139264      InceptionResNetV2_block17_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_82[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_82 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_83 (Co (None, 17, 17, 160)  143360      InceptionResNetV2_activation_82[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_83[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_83 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_81 (Co (None, 17, 17, 192)  208896      InceptionResNetV2_block17_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_84 (Co (None, 17, 17, 192)  215040      InceptionResNetV2_activation_83[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_81[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_84[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_81 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_84 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_81[0\n",
      "                                                                 InceptionResNetV2_activation_84[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_2_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_1_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_2_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_2[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_86 (Co (None, 17, 17, 128)  139264      InceptionResNetV2_block17_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_86[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_86 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_87 (Co (None, 17, 17, 160)  143360      InceptionResNetV2_activation_86[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_87[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_87 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_85 (Co (None, 17, 17, 192)  208896      InceptionResNetV2_block17_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_88 (Co (None, 17, 17, 192)  215040      InceptionResNetV2_activation_87[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_85[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_88[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_85 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_88 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_85[0\n",
      "                                                                 InceptionResNetV2_activation_88[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_3_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_2_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_3_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_3[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_90 (Co (None, 17, 17, 128)  139264      InceptionResNetV2_block17_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_90[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_90 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_91 (Co (None, 17, 17, 160)  143360      InceptionResNetV2_activation_90[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_91[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_91 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_89 (Co (None, 17, 17, 192)  208896      InceptionResNetV2_block17_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_92 (Co (None, 17, 17, 192)  215040      InceptionResNetV2_activation_91[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_89[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_92[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_89 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_92 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_89[0\n",
      "                                                                 InceptionResNetV2_activation_92[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_4_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_3_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_4_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_4[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_94 (Co (None, 17, 17, 128)  139264      InceptionResNetV2_block17_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_94[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_94 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_95 (Co (None, 17, 17, 160)  143360      InceptionResNetV2_activation_94[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_95[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_95 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_93 (Co (None, 17, 17, 192)  208896      InceptionResNetV2_block17_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_96 (Co (None, 17, 17, 192)  215040      InceptionResNetV2_activation_95[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_93[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_96[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_93 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_96 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_93[0\n",
      "                                                                 InceptionResNetV2_activation_96[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_5_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_4_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_5_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_5[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_98 (Co (None, 17, 17, 128)  139264      InceptionResNetV2_block17_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_98[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_98 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_99 (Co (None, 17, 17, 160)  143360      InceptionResNetV2_activation_98[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_99[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_99 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_97 (Co (None, 17, 17, 192)  208896      InceptionResNetV2_block17_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_100 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_99[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_97[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_100[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_97 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_97[0\n",
      "                                                                 InceptionResNetV2_activation_100[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_6_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_5_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_6_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_6[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_102 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_102[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_103 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_102[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_103[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_101 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_104 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_103[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_101[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_104[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_101[\n",
      "                                                                 InceptionResNetV2_activation_104[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_7_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_6_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_7_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_7[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_106 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_106[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_107 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_106[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_107[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_105 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_108 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_107[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_105[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_108[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_105[\n",
      "                                                                 InceptionResNetV2_activation_108[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_8_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_7_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_8_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_8[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_110 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_110[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_111 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_110[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_111[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_109 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_112 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_111[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_109[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_112[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_10 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_109[\n",
      "                                                                 InceptionResNetV2_activation_112[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_9_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_8_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_9_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_9[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_114 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_114[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_115 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_114[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_115[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_113 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_116 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_115[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_113[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_116[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_113[\n",
      "                                                                 InceptionResNetV2_activation_116[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_10_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_9_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_10_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_10[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_118 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_118[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_119 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_118[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_119[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_117 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_120 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_119[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_117[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_120[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_11 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_117[\n",
      "                                                                 InceptionResNetV2_activation_120[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_11_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_10_ac[0\n",
      "                                                                 InceptionResNetV2_block17_11_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_11[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_122 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_11_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_122[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_123 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_122[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_123[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_121 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_11_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_124 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_123[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_121[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_124[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_121[\n",
      "                                                                 InceptionResNetV2_activation_124[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_12_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_11_ac[0\n",
      "                                                                 InceptionResNetV2_block17_12_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_12[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_126 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_12_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_126[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_127 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_126[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_127[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_125 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_12_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_128 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_127[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_125[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_128[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_125[\n",
      "                                                                 InceptionResNetV2_activation_128[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_13_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_12_ac[0\n",
      "                                                                 InceptionResNetV2_block17_13_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_13[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_130 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_13_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_130[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_131 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_130[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_131[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_129 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_13_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_132 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_131[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_129[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_132[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_12 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_129[\n",
      "                                                                 InceptionResNetV2_activation_132[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_14_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_13_ac[0\n",
      "                                                                 InceptionResNetV2_block17_14_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_14[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_134 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_14_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_134[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_135 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_134[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_135[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_133 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_14_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_136 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_135[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_133[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_136[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_133[\n",
      "                                                                 InceptionResNetV2_activation_136[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_15_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_14_ac[0\n",
      "                                                                 InceptionResNetV2_block17_15_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_15[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_138 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_15_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_138[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_139 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_138[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_139[0][0\n",
      "__________________________________________________________________________________________________\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "InceptionResNetV2_activation_13 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_137 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_15_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_140 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_139[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_137[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_140[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_13 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_137[\n",
      "                                                                 InceptionResNetV2_activation_140[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_16_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_15_ac[0\n",
      "                                                                 InceptionResNetV2_block17_16_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_16[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_142 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_16_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_142[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_143 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_142[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_143[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_141 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_16_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_144 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_143[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_141[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_144[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_141[\n",
      "                                                                 InceptionResNetV2_activation_144[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_17_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_16_ac[0\n",
      "                                                                 InceptionResNetV2_block17_17_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_17[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_146 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_17_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_146[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_147 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_146[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_147[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_145 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_17_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_148 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_147[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_145[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_148[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_145[\n",
      "                                                                 InceptionResNetV2_activation_148[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_18_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_17_ac[0\n",
      "                                                                 InceptionResNetV2_block17_18_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_18[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_150 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_18_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_150[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_151 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_150[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_151[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_149 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_18_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_152 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_151[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_149[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_152[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_14 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_149[\n",
      "                                                                 InceptionResNetV2_activation_152[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_19_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_18_ac[0\n",
      "                                                                 InceptionResNetV2_block17_19_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_19[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_154 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_19_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_154[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_155 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_154[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_155[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_153 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_19_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_156 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_155[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_153[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_156[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_153[\n",
      "                                                                 InceptionResNetV2_activation_156[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_20_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_19_ac[0\n",
      "                                                                 InceptionResNetV2_block17_20_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_20[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_161 (C (None, 17, 17, 256)  278528      InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 256)  768         InceptionResNetV2_conv2d_161[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 17, 17, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_157 (C (None, 17, 17, 256)  278528      InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_159 (C (None, 17, 17, 256)  278528      InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_162 (C (None, 17, 17, 288)  663552      InceptionResNetV2_activation_161[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 256)  768         InceptionResNetV2_conv2d_157[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 256)  768         InceptionResNetV2_conv2d_159[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 288)  864         InceptionResNetV2_conv2d_162[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 17, 17, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 17, 17, 288)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_158 (C (None, 8, 8, 384)    884736      InceptionResNetV2_activation_157[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_160 (C (None, 8, 8, 288)    663552      InceptionResNetV2_activation_159[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_163 (C (None, 8, 8, 320)    829440      InceptionResNetV2_activation_162[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 384)    1152        InceptionResNetV2_conv2d_158[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 288)    864         InceptionResNetV2_conv2d_160[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 320)    960         InceptionResNetV2_conv2d_163[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_15 (None, 8, 8, 384)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 288)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 320)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 8, 8, 1088)   0           InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_mixed_7a (Con (None, 8, 8, 2080)   0           InceptionResNetV2_activation_158[\n",
      "                                                                 InceptionResNetV2_activation_160[\n",
      "                                                                 InceptionResNetV2_activation_163[\n",
      "                                                                 InceptionResNetV2_max_pooling2d_4\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_165 (C (None, 8, 8, 192)    399360      InceptionResNetV2_mixed_7a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_165[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_166 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_165[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_166[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_164 (C (None, 8, 8, 192)    399360      InceptionResNetV2_mixed_7a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_167 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_166[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_164[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_167[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_164[\n",
      "                                                                 InceptionResNetV2_activation_167[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv1 (Conv2D)  (None, 149, 149, 32) 864         Xception_InceptionResNetV2_input_\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_1_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv1_bn (Batch (None, 149, 149, 32) 128         Xception_block1_conv1[0][0]      \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_mixed_7a[0][0] \n",
      "                                                                 InceptionResNetV2_block8_1_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv1_act (Acti (None, 149, 149, 32) 0           Xception_block1_conv1_bn[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_1[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv2 (Conv2D)  (None, 147, 147, 64) 18432       Xception_block1_conv1_act[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_169 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_1_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv2_bn (Batch (None, 147, 147, 64) 256         Xception_block1_conv2[0][0]      \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_169[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv2_act (Acti (None, 147, 147, 64) 0           Xception_block1_conv2_bn[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv1 (Separ (None, 147, 147, 128 8768        Xception_block1_conv2_act[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_170 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_169[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv1_bn (Ba (None, 147, 147, 128 512         Xception_block2_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_170[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv2_act (A (None, 147, 147, 128 0           Xception_block2_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv2 (Separ (None, 147, 147, 128 17536       Xception_block2_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_168 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_1_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_171 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_170[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv2_bn (Ba (None, 147, 147, 128 512         Xception_block2_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_204 (Conv2D)    (None, 74, 74, 128)  8192        Xception_block1_conv2_act[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_168[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_171[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_pool (MaxPoolin (None, 74, 74, 128)  0           Xception_block2_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_20 (None, 74, 74, 128)  512         Xception_conv2d_204[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_16 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_1 (Add)            (None, 74, 74, 128)  0           Xception_block2_pool[0][0]       \n",
      "                                                                 Xception_batch_normalization_204[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_168[\n",
      "                                                                 InceptionResNetV2_activation_171[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv1_act (A (None, 74, 74, 128)  0           Xception_add_1[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_2_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv1 (Separ (None, 74, 74, 256)  33920       Xception_block3_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_1_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_2_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv1_bn (Ba (None, 74, 74, 256)  1024        Xception_block3_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_2[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv2_act (A (None, 74, 74, 256)  0           Xception_block3_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_173 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_2_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv2 (Separ (None, 74, 74, 256)  67840       Xception_block3_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_173[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv2_bn (Ba (None, 74, 74, 256)  1024        Xception_block3_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_205 (Conv2D)    (None, 37, 37, 256)  32768       Xception_add_1[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_pool (MaxPoolin (None, 37, 37, 256)  0           Xception_block3_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_20 (None, 37, 37, 256)  1024        Xception_conv2d_205[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_174 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_173[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_2 (Add)            (None, 37, 37, 256)  0           Xception_block3_pool[0][0]       \n",
      "                                                                 Xception_batch_normalization_205[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_174[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv1_act (A (None, 37, 37, 256)  0           Xception_add_2[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv1 (Separ (None, 37, 37, 728)  188672      Xception_block4_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_172 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_2_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_175 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_174[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv1_bn (Ba (None, 37, 37, 728)  2912        Xception_block4_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_172[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_175[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv2_act (A (None, 37, 37, 728)  0           Xception_block4_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv2 (Separ (None, 37, 37, 728)  536536      Xception_block4_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_172[\n",
      "                                                                 InceptionResNetV2_activation_175[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv2_bn (Ba (None, 37, 37, 728)  2912        Xception_block4_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_206 (Conv2D)    (None, 19, 19, 728)  186368      Xception_add_2[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_3_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_pool (MaxPoolin (None, 19, 19, 728)  0           Xception_block4_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_20 (None, 19, 19, 728)  2912        Xception_conv2d_206[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_2_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_3_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_3 (Add)            (None, 19, 19, 728)  0           Xception_block4_pool[0][0]       \n",
      "                                                                 Xception_batch_normalization_206[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_3[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_3[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_177 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_3_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block5_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_177[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block5_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block5_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_178 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_177[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block5_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_178[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block5_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block5_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_176 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_3_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_179 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_178[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block5_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_176[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_179[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block5_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_17 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_4 (Add)            (None, 19, 19, 728)  0           Xception_block5_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_3[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_176[\n",
      "                                                                 InceptionResNetV2_activation_179[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_4[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_4_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block6_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_3_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_4_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block6_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_4[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block6_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_181 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_4_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block6_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_181[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block6_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block6_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_182 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_181[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block6_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_182[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block6_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_5 (Add)            (None, 19, 19, 728)  0           Xception_block6_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_4[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_180 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_4_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_183 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_182[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_5[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_180[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_183[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block7_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block7_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_180[\n",
      "                                                                 InceptionResNetV2_activation_183[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block7_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_5_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block7_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_4_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_5_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block7_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_5[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block7_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_185 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_5_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block7_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_185[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block7_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_6 (Add)            (None, 19, 19, 728)  0           Xception_block7_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_5[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_186 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_185[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_6[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_186[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block8_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block8_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_184 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_5_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_187 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_186[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block8_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_184[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_187[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block8_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block8_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_184[\n",
      "                                                                 InceptionResNetV2_activation_187[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block8_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_6_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block8_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_5_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_6_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block8_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_6[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_7 (Add)            (None, 19, 19, 728)  0           Xception_block8_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_6[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_189 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_6_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_7[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_189[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block9_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block9_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_190 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_189[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block9_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_190[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block9_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block9_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_188 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_6_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_191 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_190[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block9_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_188[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_191[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block9_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_18 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block9_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_188[\n",
      "                                                                 InceptionResNetV2_activation_191[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_8 (Add)            (None, 19, 19, 728)  0           Xception_block9_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_7[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_7_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_8[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_6_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_7_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block10_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_7[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block10_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_193 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_7_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block10_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_193[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv2 (Sepa (None, 19, 19, 728)  536536      Xception_block10_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv2_bn (B (None, 19, 19, 728)  2912        Xception_block10_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_194 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_193[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv3_act ( (None, 19, 19, 728)  0           Xception_block10_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_194[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv3 (Sepa (None, 19, 19, 728)  536536      Xception_block10_sepconv3_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv3_bn (B (None, 19, 19, 728)  2912        Xception_block10_sepconv3[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_192 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_7_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_195 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_194[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_9 (Add)            (None, 19, 19, 728)  0           Xception_block10_sepconv3_bn[0][0\n",
      "                                                                 Xception_add_8[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_192[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_195[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_9[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block11_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_192[\n",
      "                                                                 InceptionResNetV2_activation_195[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block11_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_8_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block11_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_7_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_8_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv2 (Sepa (None, 19, 19, 728)  536536      Xception_block11_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_8[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv2_bn (B (None, 19, 19, 728)  2912        Xception_block11_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_197 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_8_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv3_act ( (None, 19, 19, 728)  0           Xception_block11_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_197[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv3 (Sepa (None, 19, 19, 728)  536536      Xception_block11_sepconv3_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv3_bn (B (None, 19, 19, 728)  2912        Xception_block11_sepconv3[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_198 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_197[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_10 (Add)           (None, 19, 19, 728)  0           Xception_block11_sepconv3_bn[0][0\n",
      "                                                                 Xception_add_9[0][0]             \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_198[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_10[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block12_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_196 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_8_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_199 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_198[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block12_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_196[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_199[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block12_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_19 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv2 (Sepa (None, 19, 19, 728)  536536      Xception_block12_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_196[\n",
      "                                                                 InceptionResNetV2_activation_199[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv2_bn (B (None, 19, 19, 728)  2912        Xception_block12_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_9_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv3_act ( (None, 19, 19, 728)  0           Xception_block12_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_8_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_9_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv3 (Sepa (None, 19, 19, 728)  536536      Xception_block12_sepconv3_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_9[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv3_bn (B (None, 19, 19, 728)  2912        Xception_block12_sepconv3[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_201 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_9_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_11 (Add)           (None, 19, 19, 728)  0           Xception_block12_sepconv3_bn[0][0\n",
      "                                                                 Xception_add_10[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_201[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_11[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block13_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_202 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_201[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block13_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_202[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block13_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv2 (Sepa (None, 19, 19, 1024) 752024      Xception_block13_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_200 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_9_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_203 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_202[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv2_bn (B (None, 19, 19, 1024) 4096        Xception_block13_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_207 (Conv2D)    (None, 10, 10, 1024) 745472      Xception_add_11[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_200[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_203[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_pool (MaxPooli (None, 10, 10, 1024) 0           Xception_block13_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_20 (None, 10, 10, 1024) 4096        Xception_conv2d_207[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_12 (Add)           (None, 10, 10, 1024) 0           Xception_block13_pool[0][0]      \n",
      "                                                                 Xception_batch_normalization_207[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_10_mix (None, 8, 8, 448)    0           InceptionResNetV2_activation_200[\n",
      "                                                                 InceptionResNetV2_activation_203[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv1 (Sepa (None, 10, 10, 1536) 1582080     Xception_add_12[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_10_con (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_10_mixed\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv1_bn (B (None, 10, 10, 1536) 6144        Xception_block14_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_10 (La (None, 8, 8, 2080)   0           InceptionResNetV2_block8_9_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_10_conv[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv1_act ( (None, 10, 10, 1536) 0           Xception_block14_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv_7b (Conv (None, 8, 8, 1536)   3194880     InceptionResNetV2_block8_10[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv2 (Sepa (None, 10, 10, 2048) 3159552     Xception_block14_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv_7b_bn (B (None, 8, 8, 1536)   4608        InceptionResNetV2_conv_7b[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv2_bn (B (None, 10, 10, 2048) 8192        Xception_block14_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv_7b_ac (A (None, 8, 8, 1536)   0           InceptionResNetV2_conv_7b_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv2_act ( (None, 10, 10, 2048) 0           Xception_block14_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "global_average_pooling2d_1 (Glo (None, 1536)         0           InceptionResNetV2_conv_7b_ac[0][0\n",
      "__________________________________________________________________________________________________\n",
      "global_average_pooling2d_2 (Glo (None, 2048)         0           Xception_block14_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "concatenate_1 (Concatenate)     (None, 3584)         0           global_average_pooling2d_1[0][0] \n",
      "                                                                 global_average_pooling2d_2[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "dense_1 (Dense)                 (None, 256)          917760      concatenate_1[0][0]              \n",
      "__________________________________________________________________________________________________\n",
      "dropout_1 (Dropout)             (None, 256)          0           dense_1[0][0]                    \n",
      "__________________________________________________________________________________________________\n",
      "dense_2 (Dense)                 (None, 40)           10280       dropout_1[0][0]                  \n",
      "==================================================================================================\n",
      "Total params: 76,126,256\n",
      "Trainable params: 76,011,184\n",
      "Non-trainable params: 115,072\n",
      "__________________________________________________________________________________________________\n"
     ]
    }
   ],
   "source": [
    "x = Dense(256, activation='relu')(x)\n",
    "x = Dropout(0.3)(x)\n",
    "\n",
    "predictions = Dense(n_classess, activation='softmax')(x)\n",
    "model = Model(inputs=input_tensor, outputs=predictions)\n",
    "model.summary()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(f'../tmp/model_{__file__}.json','w') as f:\n",
    "    model_json = model.to_json()\n",
    "    f.write(model_json)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "ckpt = ModelCheckpoint('../tmp/ckpt-'+__file__+'-Epoch_{epoch:03d}-acc_{acc:.5f}-val_acc_{val_acc:.5f}.h5', save_best_only=True, monitor='val_acc')\n",
    "\n",
    "estop = EarlyStopping(monitor='val_acc', min_delta=1e-7,verbose=1, patience=20)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Use tf.cast instead.\n",
      "Epoch 1/100\n",
      "2500/2500 [==============================] - 2063s 825ms/step - loss: 1.4165 - acc: 0.6444 - val_loss: 0.4478 - val_acc: 0.8703\n",
      "Epoch 2/100\n",
      "2500/2500 [==============================] - 2008s 803ms/step - loss: 0.4379 - acc: 0.8763 - val_loss: 0.3790 - val_acc: 0.8889\n",
      "Epoch 3/100\n",
      "2500/2500 [==============================] - 2008s 803ms/step - loss: 0.2189 - acc: 0.9397 - val_loss: 0.3871 - val_acc: 0.8937\n",
      "Epoch 4/100\n",
      "2500/2500 [==============================] - 2011s 804ms/step - loss: 0.1145 - acc: 0.9684 - val_loss: 0.4609 - val_acc: 0.8832\n",
      "Epoch 5/100\n",
      "2500/2500 [==============================] - 2002s 801ms/step - loss: 0.0736 - acc: 0.9797 - val_loss: 0.5038 - val_acc: 0.8751\n",
      "Epoch 6/100\n",
      "2500/2500 [==============================] - 2006s 802ms/step - loss: 0.0447 - acc: 0.9877 - val_loss: 0.4860 - val_acc: 0.8893\n",
      "Epoch 7/100\n",
      "2500/2500 [==============================] - 2006s 802ms/step - loss: 0.0345 - acc: 0.9901 - val_loss: 0.6567 - val_acc: 0.8660\n",
      "Epoch 8/100\n",
      "2500/2500 [==============================] - 2011s 805ms/step - loss: 0.0303 - acc: 0.9919 - val_loss: 0.5558 - val_acc: 0.8700\n",
      "Epoch 9/100\n",
      "2500/2500 [==============================] - 2004s 801ms/step - loss: 0.0220 - acc: 0.9944 - val_loss: 0.6183 - val_acc: 0.8734\n",
      "Epoch 10/100\n",
      "2500/2500 [==============================] - 1999s 799ms/step - loss: 0.0207 - acc: 0.9942 - val_loss: 0.7315 - val_acc: 0.8710\n",
      "Epoch 11/100\n",
      "2500/2500 [==============================] - 1967s 787ms/step - loss: 0.0182 - acc: 0.9952 - val_loss: 0.7241 - val_acc: 0.8714\n",
      "Epoch 12/100\n",
      " 996/2500 [==========>...................] - ETA: 19:13 - loss: 0.0159 - acc: 0.9954"
     ]
    }
   ],
   "source": [
    "model.compile(optimizer=Adam(lr=1e-5), loss='categorical_crossentropy', metrics=['accuracy'])\n",
    "\n",
    "model.fit_generator(\n",
    "    train_g,\n",
    "    # steps_per_epoch=100,\n",
    "    steps_per_epoch=train_g.n // batch_size,\n",
    "    epochs=100,\n",
    "    callbacks=[ckpt, estop],\n",
    "    validation_data=valid_g,\n",
    "    # validation_steps=1,\n",
    "    validation_steps=valid_g.n // batch_size\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "batch_size"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
